package com.ruoyi.traplight.service;


import com.ruoyi.traplight.domain.PhotoDao;
import com.ruoyi.traplight.domain.TraplightDetectionLog;
import com.ruoyi.traplight.domain.SelectPhotoDao;

import java.util.List;

/**
 * @author FLInt
 * @date 2021/10/20 11:18
 */
public interface PhotoService {

    /**
     * 手动拍照
     * @author FLInt
     * @date 2021/10/20 11:53
     */
//    String invokeTakePhoto(String deviceName) throws Exception;

    /**
     * 查询历史图片
     * @author FLInt
     * @date 2021/10/20 11:53
     */
//    Long queryDevicePhoto(String deviceName, Long startTime, Long endTime, int pageSize) throws Exception;

//    boolean downloadPhotoByUrl(String url, String dir, String fileName);

    /**
     * 调用识别接口，并通过回调函数上传识别结果
     */
//    String discernAndCallBack(String responseBody, String imgName, String imgPath, String deviceName) throws Exception;

    /**
     * 拉取图片列表
     */
    List<PhotoDao> selectPhotoList(SelectPhotoDao photoDao,Integer unitId) throws Exception;

    /**
     * 删除图片
     * @param id
     * @return
     */
    int deletePhoto(int id);


    /**
     * 根据ID更新重新计数的内容
     * @return
     */
    public SelectPhotoDao autoCountAgain(Integer id,Integer unitId);
}
